package com.itheima.store.dao;

import com.itheima.store.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface CategoryDao {
    List<Category> findAll();

    Category findCategoryById(String cid);

    int deleteCategory(String cid);

    int  editCategoryById(@Param("cid") String cid, @Param("cname") String cname);

    int  addCategory(@Param("cname") String cname,@Param("ccid") String ccid);
}
